package io.adrainty.bolee.trade.models.constants;

/**
 * @author AdRainty
 * @version V1.0.0
 * @since 2025/8/31 下午11:29
 */
public class TradeCacheConstants {

    private TradeCacheConstants() {}

    //默认redis等待时间
    public static final int REDIS_WAIT_TIME = 10;

    //默认redis自动释放时间
    public static final int REDIS_LEASE_TIME = 4;

    //安全组前缀
    public static final String PREFIX = "trade:";

    //分布式锁前缀
    public static final String LOCK_PREFIX = PREFIX+"lock:";

    //创建交易加锁
    public static final String CREATE_PAY = LOCK_PREFIX+ "create_pay";

    //创建退款加锁
    public static final String REFUND_PAY = LOCK_PREFIX+ "refund_pay";

    //创建退款加锁
    public static final String PAY_CHANNEL_VLID = PREFIX+"pay_channel_vlid&ttl=-1";

    //page分页
    public static final String PAGE= PREFIX+"page";

}
